using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.Model;
using emp.BLL;
using emp.IDAL;
namespace emp.ProcessFlow
{
   public  class TaskScheduleSetupController
    {


       public bool Insert(TaskScheduleSetupInfo tssinfo)
       {
           try
           {
               TaskScheduleSetup cy = new TaskScheduleSetup();
               cy.Insert(tssinfo);
               HttpContext.Current.Response.Redirect("TaskScheduleSetupList.aspx", true);
           }
           catch
           {
               return false;

           }
           return true;
       }
       public bool Update(TaskScheduleSetupInfo tssinfo, int tssid)
       {
           try
           {
               TaskScheduleSetup cy = new TaskScheduleSetup();
               cy.Update(tssinfo, tssid);
               HttpContext.Current.Response.Redirect("TaskScheduleSetupList.aspx", true);
           }
           catch
           {
               return false;
           }
           return true;
       }
       public bool Deltet(int tssind, int iCurPage)
       {
           try
           {
               TaskScheduleSetup cy = new TaskScheduleSetup();
               cy.Delete(tssind);
               HttpContext.Current.Response.Redirect("TaskScheduleSetupList.aspx?page=" + iCurPage, true);
           }
           catch
           {
               return false;
           }
           return true;
       }
    }
}
